package com.zwb.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zwb.service.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zwb
 * @since 2022-08-23
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {


    /**
     * 获取所有员工 分页数据
     *
     * @param page
     * @param beginDateScope
     * @param endDateScope
     * @param employee
     * @return
     */
    Page<Employee> getEmployeeByPage(Page<Employee> page, Date beginDateScope, Date endDateScope, Employee employee);


    /**
     * 根据 ids 查询 员工数据
     *
     * @param ids
     * @return
     */
    List<Employee> getEmployeesByIn(List<Integer> ids);

    /*  获取员工工资帐套 */
    IPage<Employee> getEmployeeWithSalary(Page<Employee> page);
}
